// 导入instance
import instance from '@/utils/axios.js'

// 登录接口
function userLogin({username,password}){
    return instance({
        url:'/admin/user/login',
        method:'post',
        data:{
            username,
            password
        }

    })
}

export {userLogin} 

// 编辑用户信息
function editUserInfo(fd){
    return instance({
        url:'/admin/user/edit',
        method:'post',
        data:fd
    })
}

export {editUserInfo} 